import xgRequest from '../request'

import { IUserInfo } from './type'
import { IDataType } from '../request/type'

export function login(userInfo: IUserInfo) {
  return xgRequest.post<IDataType>({
    url: '/user/login',
    data: userInfo
  })
}
